import request from '@/utils/request'

export function fetchPageList(param) {
return request({
url: '/${entityName}/list/' ,
method: 'post',
data:param
})
}
export function fetchAllList(param) {
return request({
url: '/${entityName}/listAll/' ,
method: 'post',
data:param
})
}

export function deleteEntity(id) {
return request({
url: '/${entityName}/delete/' + id,
method: 'post'
})
}

export function createEntity(data) {
return request({
url: '/${entityName}/create',
method: 'post',
data: data
})
}

export function updateEntity(id, data) {
return request({
url: '/${entityName}/update/' + id,
method: 'post',
data: data
})
}

export function getEntity(id) {
return request({
url: '/${entityName}/' + id,
method: 'get',
})
}
